import request from '@/utils/request'

// 查询待办记录列表
export function getTaskList(query) {
  return request({
    url: '/biz/workOrder/getTaskList',
    method: 'get',
    params: query
  })
}

// 查询已办记录列表
export function getDoneList(query) {
  return request({
    url: '/biz/workOrder/getDoneList',
    method: 'get',
    params: query
  })
}

// 查询待阅记录列表
export function getReadList(query) {
  return request({
    url: '/biz/workOrder/getReadList',
    method: 'get',
    params: query
  })
}

// 查询已阅记录列表
export function getReadDoneList(query) {
  return request({
    url: '/biz/workOrder/getReadDoneList',
    method: 'get',
    params: query
  })
}

// 查询申请记录列表
export function getApplyList(query) {
  return request({
    url: '/biz/workOrder/getApplyList',
    method: 'get',
    params: query
  })
}

export function getFlowInfo() {
  return request({
    url: '/biz/workOrder/getFlowInfo',
    method: 'get'
  })
}

export function getFlowState() {
  return request({
    url: '/biz/workOrder/getFlowState',
    method: 'get'
  })
}

export function listFlowMainInfo(query) {
  return request({
    url: '/biz/workOrder/listFlowMainInfo',
    method: 'get',
    params: query
  })
}


